package org.tongdao.yulong.event;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description: TODO
 * @author: 殷玉龙
 * @date: 2021年01月20日 下午2:04
 */
public class RegisterEventApplication {
  public static void main(String[] args) {
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext("org.tongdao.yulong.event");
    RegisterService bean = ctx.getBean(RegisterService.class);
    bean.register("张三");
  }
}
